package com.daniel.authytest.server;

import com.daniel.authytest.client.AuthyTestService;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class AuthyTestServiceImpl extends RemoteServiceServlet implements AuthyTestService
{

    @Override
    public String searchOnGitHug( String gitHubUrl, String findText, Boolean caseSensitive ) throws Exception
    {
        GuitHubSearcher ghs = new GuitHubSearcher( );
        return ghs.searchOnGitHug( gitHubUrl, findText, caseSensitive ).toString( );
    }

}
